package com.ruiysoft.controller.aftersaleconf.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * AftersaleConfVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-01-08T00:56:08.388+08:00")

public class AftersaleConfVo {
  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("returnedDay")
  private Integer returnedDay = null;

  @JsonProperty("exchangeDay")
  private Integer exchangeDay = null;

  @JsonProperty("isDefault")
  private Boolean isDefault = null;

  public AftersaleConfVo id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "1", value = "")


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public AftersaleConfVo name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 模板名
   * @return name
  **/
  @ApiModelProperty(example = "1", value = "模板名")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public AftersaleConfVo returnedDay(Integer returnedDay) {
    this.returnedDay = returnedDay;
    return this;
  }

  /**
   * 几天退货
   * @return returnedDay
  **/
  @ApiModelProperty(example = "1", value = "几天退货")


  public Integer getReturnedDay() {
    return returnedDay;
  }

  public void setReturnedDay(Integer returnedDay) {
    this.returnedDay = returnedDay;
  }

  public AftersaleConfVo exchangeDay(Integer exchangeDay) {
    this.exchangeDay = exchangeDay;
    return this;
  }

  /**
   * 几天换货
   * @return exchangeDay
  **/
  @ApiModelProperty(example = "1", value = "几天换货")


  public Integer getExchangeDay() {
    return exchangeDay;
  }

  public void setExchangeDay(Integer exchangeDay) {
    this.exchangeDay = exchangeDay;
  }

  public AftersaleConfVo isDefault(Boolean isDefault) {
    this.isDefault = isDefault;
    return this;
  }

  /**
   * 是否默认（0，非默认，1，默认）
   * @return isDefault
  **/
  @ApiModelProperty(example = "false", value = "是否默认（0，非默认，1，默认）")


  public Boolean isIsDefault() {
    return isDefault;
  }

  public void setIsDefault(Boolean isDefault) {
    this.isDefault = isDefault;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AftersaleConfVo aftersaleConfVo = (AftersaleConfVo) o;
    return Objects.equals(this.id, aftersaleConfVo.id) &&
        Objects.equals(this.name, aftersaleConfVo.name) &&
        Objects.equals(this.returnedDay, aftersaleConfVo.returnedDay) &&
        Objects.equals(this.exchangeDay, aftersaleConfVo.exchangeDay) &&
        Objects.equals(this.isDefault, aftersaleConfVo.isDefault);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, returnedDay, exchangeDay, isDefault);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AftersaleConfVo {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    returnedDay: ").append(toIndentedString(returnedDay)).append("\n");
    sb.append("    exchangeDay: ").append(toIndentedString(exchangeDay)).append("\n");
    sb.append("    isDefault: ").append(toIndentedString(isDefault)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

